package com.javaclimb.accounting.service.impl;

import com.javaclimb.accounting.dao.BindDao;
import com.javaclimb.accounting.po.Bind;
import com.javaclimb.accounting.service.BindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: XX
 * @create: 2022-12-28 11:30
 **/

@Service
public class BindServiceImpl implements BindService{
    @Autowired
    private BindDao bindDao;

    @Override
    public Bind findBind(long cardId) {
        return bindDao.findBind(cardId);
    }

    @Override
    public int bind(Bind bind) {
        return bindDao.bind(bind);
    }

    @Override
    public List<Bind> findBindsByAccountId(long accountId) {
        return bindDao.findBindsByAccountId(accountId);
    }
}
